package com.example.mapper;


import com.example.dao.Import;
import com.example.dao.SearchGoods;
import com.example.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VHnyyVenderMapper {
    List<VHnyyVender> getParty(String comPartyId,String name);

    List<VHnyyVenderGoodsQuery> getGoods(String comPartyId, SearchGoods searchGoods);

    List<VHnyyVender> getClient(String comPartyId, String name);

    List<SysClientPriceSets> getClientList(String comPartyId, String name);

    int addPolicy(HnyyPurRebateList hnyyPurRebateList);

    List<VHnyyVenderGoodsQuery> getCheck(String key,String comPartyId,String vender,String goodsDesc,String creater,String startDate,String endDate);

    HnyyPurRebateList getPolicy(String comGoodsId, String sysVenderGoodsRefId,String comPartyId);

    int updatePolicy(HnyyPurRebateList hnyyPurRebateList);

    List<VHnyyVender> getClientById(String comPartyId, String clientId);

    List<SysClientPriceSets> getClientListByIds(String comPartyId,
                                         @Param("ids") List<String> ids);

    VHnyyVenderGoodsQuery getImport(String comPartyId, Import importName);

    int insertTem(HnyyPurRebateList item);

    List<VHnyyPurRebateList> getTem();

    int updateTem(String id, String opFlag);
}
